package com.sgcc.ln.pmos.e_ln_home.adapter;

import android.content.Context;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.sgcc.pmos.nativesdk.R;
import com.sgcc.ln.pmos.common.utils.DateUtils;
import com.sgcc.ln.pmos.e_ln_home.bean.SDBasicInformationEnterpriseBean;
import com.sgcc.ln.pmos.e_ln_home.bean.TradingInstitutionBasicinfoBean;

public class StructuralInformation1Adapter extends BaseQuickAdapter<SDBasicInformationEnterpriseBean.DataBean.IpGhGudongBean, BaseViewHolder> {

    private Context mContext;

    public StructuralInformation1Adapter(Context context) {
        super(R.layout.item_structuralinformation1);
        mContext = context;
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, SDBasicInformationEnterpriseBean.DataBean.IpGhGudongBean bean) {
        baseViewHolder.setText(R.id.tv_StructuralInformation1, bean.getOwernName() + "");
        baseViewHolder.setText(R.id.tv_StructuralInformation2, bean.getOwernBit() + "");
        baseViewHolder.setText(R.id.tv_StructuralInformation3, "0".equals(bean.getShareholder()) ? "否" : "是");
    }
}